<?php
namespace core\lib;
use core\lib\conf;
class model extends \Medoo\medoo
{
    public function __construct()
    {
        $option = conf::all('database');
        parent::__construct($option);

    }
    public static $redis;
    public static function redis(){

        if(!self::$redis){
            $redis = new \Redis();
            $redis->connect('127.0.0.1', 6379);
            self::$redis = $redis;
        }

        return self::$redis;
    }



}